<?php 
require_once '../include/includefiles.php';
require_once '../include/userislogin.php';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>用户修改</title>
<link href="images/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="images/jquery-1.7.2.min.js"></script>
</head>

<body>
<form name="form1" method="post" action="actions.php?act=menu_addsubmit">
<input type="hidden" name="mid" id="mid" value="<?php echo $_GET['id']?>"/>
<table width="100%" align="center" bgcolor="#F7F8F9">
  <tr bgcolor="#E1E5EE">
    <td height="30" colspan="2" align="center" bgcolor="#E1E5EE">权限管理</td>
  </tr>
  <tr align="center">
    <td width="50%" height="25" align="right">设置父节点：      </td>
    <td width="50%" align="left"><select name="right">
      <option value="-1">根节点</option>
    </select></td>
  </tr>
  <tr align="center">
    <td height="25" align="right">当前节点：      </td>
    <td height="25" align="left"><input name="name" type="text" id="name"></td>
  </tr>
  <tr >
    <td height='25' align="right">url链接：</td>
    <td height='25' align="left"><input name="url" type="text" id="url"></td>
  </tr>
  <tr >
    <td height='25' colspan="2" align="center"><input type="submit" name="Submit" value="新增"></td>
  </tr>
</table>
</form>
<script>
  $(function(){
          $.post('actions.php?act=menutree2&id='+$('#mid').val(),function(data){
        	  $("[name='right']").append(data);
          });
  });
</script>
</body>
</html>
